<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
     xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:p="http://primefaces.prime.com.tr/ui"
    >
    <f:view locale="#{localeBean.locale}">
    <head>
       
        <title>Projeto EAD</title>
        <link href="css/estilo.css" rel="stylesheet" type="text/css" />
    </head>

    <body  >
        <div align="center" name="menu" >
            <h:form id="menu" >
                <h:panelGrid columns="1" id="header" width="800" >
                    <h:graphicImage value="imagens/header.png"></h:graphicImage>
                </h:panelGrid>
                <h:panelGrid columns="5" id="menu" columnClasses="colunaMenu1, colunaMenu1, colunaMenu1, colunaMenu2, colunaMenu2"  width="800" >
                    <h:commandLink action="inicio" value="#{msgs['system.inicio']}"  />
                    <h:commandLink action="login" value="#{msgs['system.salas']}" rendered="#{!participante.logado}" />
                    <h:commandLink action="salaPrincipal" value="#{msgs['system.salas']}" rendered="#{participante.logado}" />
                    <h:commandLink action="login" value="#{msgs['system.listaUsuarios']}" rendered="#{!participante.logado}" />
                    <h:commandLink action="listaUsuarios" value="#{msgs['system.listaUsuarios']}" rendered="#{participante.logado}" />
                    <h:commandLink action="login" value="Login" rendered="#{!participante.logado}" />
                    <h:commandLink action="#{participante.deslogar}" value="Logout" rendered="#{participante.logado}" />
                    <h:panelGrid columns="2"  >
                        <h:outputText value="#{msgs['header.escolhaIdioma']}" />
                        <h:selectOneMenu value="#{localeBean.locale}"
                                         valueChangeListener="#{localeBean.changeLocale}"
                                         onchange="this.form.submit()">
                            <f:selectItems value="#{localeBean.localeList}" />
                        </h:selectOneMenu>
                    </h:panelGrid>
                </h:panelGrid>
                <!--
                    <p:dock position="top">
                            <p:menuitem value="" icon="/imagens/home.png" action="inicio"  />
                            <p:menuitem value="" icon="/imagens/sala.png" action="salaPrincipal" />
                            <p:menuitem value="Video" icon="/images/dock/video.png" url="#"/>
                            <p:menuitem value="Email" icon="/images/dock/email.png" url="#"/>
                            <p:menuitem value="Portfolio" icon="/images/dock/portfolio.png" url="#"/>
                            <p:menuitem value="Link" icon="/images/dock/link.png" url="#"/>
                            <p:menuitem value="RSS" icon="/images/dock/rss.png" url="#"/>
                            <p:menuitem value="History" icon="/images/dock/history.png" url="#"/>
                    </p:dock>
             -->
            </h:form> 
            <h:panelGrid columns="1" columnClasses="conteudoGeral" >
               <ui:insert name="body"  />
            </h:panelGrid>
            
            <h:panelGrid columns="1" columnClasses="footer" >
                Lafid
            </h:panelGrid>
        </div>
    </body>
    </f:view>
</html>
